package xu.ye.uitl;

import java.util.Comparator;

import xu.ye.bean.ContactBean;

public class ContactComparetor implements Comparator  {

    @Override
    public int compare(Object lhs, Object rhs) {
        ContactBean contact1 = (ContactBean)lhs;
        ContactBean contact2 = (ContactBean)rhs;
        int flag = contact1.getSortKey().compareToIgnoreCase(contact2.getSortKey());
        return flag;
    }

}
